import React from 'react';
import fetch from '../../core/fetch';
import { host } from '../../config';
import connectComponent from '../../utils/connectComponent'
import * as TopicPageComponent from './TopicPage'
import * as topicService from '../../services/topicService';

const TopicPage = connectComponent(TopicPageComponent);

export default {

  path: '/topic/:tid',

  async action(context, {tid}) {
  	let topicId = tid
    return {
    	title: 'topic page',
    	component: <TopicPage topicId={topicId} />
    };
  },
};
